package com.example.mq.mqserver.core;

import lombok.Data;

@Data
public class Binding {

    // 交换机key
    private String exchangeName;

    // 队列key
    private String queueName;

    // 秘钥
    private String bindingKey;

    // 带所有属性的构造函数
    public Binding(String exchangeName, String queueName, String bindingKey) {
        this.exchangeName = exchangeName;
        this.queueName = queueName;
        this.bindingKey = bindingKey;
    }

    public Binding() {

    }
}
